Navigation is working to change views in the mainView