@Override
    public void mousePressed(final MouseEvent e) {
        // if handler is clicked don't do anything
        for (final Element el : getGraphicPanel().getSelectionManager().getSelectedElements()) {
            if (el.getComponent().getHandlers().isHandlerAt(e.getPoint())) {
                System.out.println("Handler hit");
                return;
            }
        }

        final Element el = getGraphicPanel().getElementAt(e.getPoint());

        if (el != null) {
            System.out.println("Element hit");
            if (!getGraphicPanel().getSelectionManager().isElementSelected(el)) {
                getGraphicPanel().getSelectionManager().clearSelection();
                getGraphicPanel().getSelectionManager().addToSelection(el);
                AppCore.getInstance().updateDetails(el.getDetails());
            }
        }

        if (el == null) {
            getGraphicPanel().getSelectionManager().clearSelection();
            AppCore.getInstance().updateDetails(getPanel().getProcess().getDetails());
        }
        getGraphicPanel().repaint();
    }