update header and footer