Rearranged the layout header and footer.