handle duplicates in ng-repeat