Changed index to autocomplete