changed onchanget to oninput