add grid click event