Cleanup of header and footer