debug the grid button