fixing row logic, now have the data payload in $scope.data