move header and footer information into layout