Factory and ng-grid issues