fix bug and replace ng-href with ui-sref