Added a toggle feature to the grid page