update code for grid data empty layout