fix issue where filtering would not init
fix issue where depth would not be recalculated even if tree structure changed (resulting in collapse not working)
implement collapse all