Move the router to ui router.