Set up main page.