change to oninput event for search