some cleaning of grid view