Updated to better use of header and footer in pages.