updating headers and footers