fix for MainPage.cs