abstract header and footer from pages