changed list to ng-repeat loop