Moved scrollToAccordion inside doTransition