Clean up header and footer.