update onchange event