petea - added onchange method