@Override
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == mainView.getPlayPause()) {
                remote.playPause();
                setPlaying(remote.isPlaying());
            }
            if (e.getSource() == mainView.getGoNext())
                remote.goNext();
            if (e.getSource() == mainView.getGoPrevious())
                remote.goPrevious();
            if (e.getSource() == mainView.getXbmcConnected())
                setConnection(remote.isConnected());

            if (e.getSource() == mainView.getGoMusicButton()) {
                mainView.getGoMusicButton().setEnabled(false);
                mainView.getGoSettingsButton().setEnabled(true);
                mainView.getGoFileTransferButton().setEnabled(true);
                mainView.setCard(MusicLibraryView.class.toString());
            }
            if (e.getSource() == mainView.getGoSettingsButton()) {
                mainView.getGoMusicButton().setEnabled(true);
                mainView.getGoSettingsButton().setEnabled(false);
                mainView.getGoFileTransferButton().setEnabled(true);
                mainView.setCard(SettingsView.class.toString());

            }
            if (e.getSource() == mainView.getGoFileTransferButton()) {
                mainView.getGoMusicButton().setEnabled(true);
                mainView.getGoSettingsButton().setEnabled(true);
                mainView.getGoFileTransferButton().setEnabled(false);
                mainView.setCard(FileTransferView.class.toString());
            }

            if (e.getSource() == mainView.getShowPlayQueueButton()) {
                int x = mainView.getWidth() - 400 - mainView.getShowPlayQueueButton().getWidth() / 2;
                int y = 30;
                playQueuePopup.setList(remote.getCurrentPlaylist());
                playQueuePopup.show(mainView, x, y);

            }
        }