update drawGrid