making sure search flyout gets removed