Added loading to main pages