replace alert with ng-show