fix search behaviour & dropdown in autocomplete