HTML UI: Regenerate the content when opening/closing expandable containers, to reset the expanded state of child containers.