adding transitions & texts to states
adding transitions and texts