adds live search functionality