Created a new angularNavigationMiddleware hook, and moved form submission to it (decoupling)