fixed the update function and we are working on getting the ID coming from the ng-repeat