search functionality in sidebar