fix expand/collapse buttons