add transitions to State Machines