working transitions and Ace editor