added the possibility not to display the grid.