fixing main pages