set up grid and cell