basic search and clear search input