conversion to ui-router
conversion to ui-router