Turn ON and OFF checkbox for an autocomplete function