Tried to add autocomplete function