Adding search functionality to sidebar