updated to work with the AutoCompleteView