header and footer fixes