removed handleTransitionEnd from frame
in order to keep the bar and frame modules loosly coupled.