handling best match result
add support for bulk input change, such as paste and dragging