Implemented same layout of grid from index