implemented search bar hide logic when clicked on sidebar