update model properties from onchange event