Flatten header and footer UI.