update ui of search and remove duplicate inputs for search.