@Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == btn_setStart) {
            if(btn_setGoal.isSelected()) {
                btn_setGoal.setSelected(false);
            }

            JToggleButton jToggleButton = (JToggleButton)e.getSource();
            if (jToggleButton.isSelected()) {
                mapViewPanel.setCallbackEvent(new MapViewCallbackEvent() {
                    @Override
                    public void onButtonClicked(Coordinate coordinate) {
                        callbackEvent.onRobotChanged(coordinate);
                    }
                });
            } else {
                mapViewPanel.setCallbackEvent(new MapViewCallbackEvent() {
                    @Override
                    public void onButtonClicked(Coordinate coordinate) {
                        // DO NOTHING
                    }
                });
            }
        } else if (e.getSource() == btn_setGoal) {
            if(btn_setStart.isSelected()) {
                btn_setStart.setSelected(false);
            }

            JToggleButton jToggleButton = (JToggleButton)e.getSource();
            if (jToggleButton.isSelected()) {
                mapViewPanel.setCallbackEvent(new MapViewCallbackEvent() {
                    @Override
                    public void onButtonClicked(Coordinate coordinate) {
                        callbackEvent.onGoalChanged(coordinate);
                    }
                });
            } else {
                mapViewPanel.setCallbackEvent(new MapViewCallbackEvent() {
                    @Override
                    public void onButtonClicked(Coordinate coordinate) {
                        // DO NOTHING
                    }
                });
            }
        } else if (e.getSource() == btn_start) {
            callbackEvent.onSimulationStarted();
            callbackEvent.onRobotMoveTry();
        } else if (e.getSource() == btn_return) {
            callbackEvent.onContextChangeRequested(CONTEXT.ENTRY);
        } else if (e.getSource() == btn_exit) {
            System.exit(0);
        }
    }