added support for showing/hiding grids