modify TransitionForm.java