Created two layouts between main page and all pages.