Extracted transitionManager to handle transitions.