prepare to persist collapsible menu