implements print and preview actions, removes grid and sets layout