move onChange into event handler
2.2.2