update grid handler