Set layout for main, sidebar, and footer.