MainPage inheritance.