anchor.diff:            var res = $http.post('notes/delete',dataObj);
             
             res.success(function(data, status, headers, config) {
  -             var i, j;
  +             var i, j, pLabel;
                for(i = 0; i < $scope.notes.length; i++){            // update all
                   if( $scope.notes[i].eid == data.eid ){
                     $scope.notes.splice(i,1);
  
positive.code: 
          $http.get('/labels/read').then(function(response) {
            $scope.labels = response.data;
            console.log(response.data);
          });
  
  
  
negative.code:              for(i = 0; i < $scope.labels.length; i++){          //update labels 
                  for(j = 0; j < $scope.labels[i].notes.length; j++){
                    if($scope.labels[i].notes[j].eid == data.eid){
                      if($scope.labels[i].eid == $scope.selectedLabel){
                        pLabel = $scope.labels[i];
                      }
                      $scope.labels[i].notes.splice(j,1);
                      $scope.labels[i].item = $scope.labels[i].item - 1;
                    }
                  }
               }
               console.log(pLabel);
               $scope.changeLabel(pLabel);
               $scope.checkList = [];
               $scope.setZeroNotes();
            });
            res.error(function(data, status, headers, config) {
            });
  