add event listeners only when search index is done