change 'table' to 'relation', added $scope.actions