Fixed page breaking and headers in print