Built first layout of the main page.