add expand/collapse code