updating model on spatial change