added changeAccordion function