adding headers and footers