implementing ui.router instance