implemented ng-click function for grid button clicks