xt: 'no' };
        diagram.model.addLinkData(falsedata);
        var falselink = diagram.findLinkForData(falsedata);

        // Reconnect the existing link to the new node
        oldlink.toNode = newnode;
        // Then add a link from the new node to the old node
        diagram.model.addLinkData({ from: endnode.key, to: tonode.key });
      } else if (newnode.category === 'Switch') {
        // add multi-way Switch group
        // add group for loop
        var groupdata = { isGroup: true, cat: newno