changed the name of notify to onchange