insertion and autocomplete search works