fix header and footer to work with all pages