updates header and footer