added onTransitionStarted handler