Updating transition on MainPage depending on origin