collect: implement autocompletion for the text entries