Changing layout of main page.