updating ui-sref and switching ng-if to ng-show