Could someone help me compress this code a little?

Printable View