updating header and footer