Creating layout for main page.