factor out StacksAccordionBox