Corrected headers and footers on small screens