designing the main pages