adding ng-switch method of creating rows
we are going to package data diff