MainPage done with switching to another window