Work with ui-router states