add basic autocomplete functionality