Initial formatting of the grid