inital setup of an autocomplete component