use ui-router methods instead of custom code