Changed event handler to onChange