Use clearSearch callback for actual collapse
Introduce show_search boolean in class Hypothesis