made headers and footers generate from the same code.