Update MainPage.cs

AbstractPage change.