main view model update.