adding autocomplete to front end