MainPage mostly working