clear search field in some cases