updated with ui.router