public void actionPerformed(ActionEvent e) {
        View view = app.getView();
        if (view.getActiveTab() != null) {
            for (Cell cell : view.getActiveTab().getCells()) {
                if (!pressed) {
                    view.getActiveTab().addCellConnectListener(cell);
                    cell.setConnecting(true);
                } else {
                    view.getActiveTab().removeCellConnectListener(cell);
                    cell.setConnecting(false);
                }
            }
            view.getActiveTab().repaint();
        }
        pressed = !pressed;
    }