Cleans up the header and footer setup