clean up header and footer