added code to refresh the list every time a new search term was added