Detecting the right click and the second state when clicked on "Add
Transition"