generalize ExpandCollapseBar
migrate ExpandCollapseBar to sun