build new header and footer