Added toggling of grid cells.