changed onchange to oninput