save state of grid view