convert coa to conform to ui-router routing in angularjs