Added getCurrentRoute function to application. Calling view.deactivate after view transitions out