Giving the search box toggle functionality