search modal is removed when search is clicked