added scope.alerts
added ng-repeat to work on scope.alerts