Added listener for grid view