migrate from angular core router to ui.router