autocomplete and user add code