this.undo = function () {
        if (!this.addingDraggableBlock) {
          disableSelected();
          commandManager.undo();
          updateWiresOnObstacles();