Update grid and number