fix header and footer on iPad