implemented arrayItemSelector for autocomplete