make the autocomplete dropdown work a bit better with respect to matching the input