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

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