@Override
    public void actionPerformed(ActionEvent actionEvent) {
        try {
            if(actionEvent.getSource() == fileTransferActive) {
                if(fileTransferActive.getText().compareTo(FTA_START) == 0) {
                   iface.startService(ServiceName.FileTransferActive);
                   fileTransferActive.setText(FTA_STOP);
                } else {
                    iface.stopService(ServiceName.FileTransferActive);
                    fileTransferActive.setText(FTA_START);
                }
            }
            if(actionEvent.getSource() == fileTransferPassive) {
                if(fileTransferPassive.getText().compareTo(FTP_START) == 0) {
                    iface.startService(ServiceName.FileTransferPassive);
                    fileTransferPassive.setText(FTP_STOP);
                } else {
                    iface.stopService(ServiceName.FileTransferPassive);
                    fileTransferPassive.setText(FTP_START);
                }
            }
            if(actionEvent.getSource() == keyboardInteraction) {
                if(keyboardInteraction.getText().compareTo(KEY_START) == 0) {
                    iface.startService(ServiceName.KeyboardInteraction);
                    keyboardInteraction.setText(KEY_STOP);
                } else {
                    iface.stopService(ServiceName.KeyboardInteraction);
                    keyboardInteraction.setText(KEY_START);
                }
            }
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, e.getMessage(), "Service Exception", JOptionPane.ERROR_MESSAGE);
        }
        if(actionEvent.getSource() == disconnect) {
            try {
                iface.disconnect();
            } catch (Exception e) {
                JOptionPane.showMessageDialog(null,e.getMessage(),"Connection Exception",JOptionPane.ERROR_MESSAGE);
            }
        }
    }