more cleanup of ui-grid directive by removing reduntant functions