remove unnessary routes and fix deprecated transitionTo