Revert "fix header and footer to work with all pages"

This reverts commit 193622623c3b2a53ed081616fe8a5ec351c57d9e.