update header and footer.