improving autocomplete plugin