only update grid when nessecary