MainPage implemented