SM viewer: copy transitions and states

*Fix #861
+Copy state w/o transitions
+Copy transition