working on the grid view