implement tag inputs functionality with autocomplete