added in event listeners for grid.