Setting up main pages