adding oninput handler