Combine header and footer into one common view.