route is checked before pushing the view