added functionality for clicking the search icon