added listener for search query
ui cleanup