Made Adjustments to MainLayout and MainPage