Add a helper function to app to do the transition to a view, transitionToView.