refactore Print Preview