updated for ng-table