header and footer clean up