public void actionPerformed(ActionEvent e) {
		try {
			if (e.getSource().getClass() == JButton.class) {

				System.out.println("command: " + e.getActionCommand());
				System.out.println("from: "
						+ MainWindow.lastSelectedTable[0].getName());

				int[] array = buildSelectedIndexesArray();
				for (int i = 0; i < array.length; i++) {

					System.out.println("working with index: " + i);

					Path oldPath = getOldFile(array[i]).toPath();
					Path newPath = buildNewFile(array[i]).toPath();

					if (e.getActionCommand() == "copy") {
						System.out.println("copy file: " + oldPath + " to: "
								+ newPath);
						if (!MainWindow.debugModeCheckBox.isSelected()) {
							Files.copy(oldPath, newPath, REPLACE_EXISTING);
						}
						continue;
					}

					if (e.getActionCommand() == "move") {
						System.out.println("move file: " + oldPath + " to: "
								+ newPath);
						if (!MainWindow.debugModeCheckBox.isSelected()) {
							Files.move(oldPath, newPath, REPLACE_EXISTING);
						}
						continue;
					}

					if (e.getActionCommand() == "delete") {
						System.out.println("del file: " + oldPath);
						if (!MainWindow.debugModeCheckBox.isSelected()) {
							Files.delete(oldPath);
						}
						continue;
					}
				}
				return;
			}

		} catch (IOException e1) {
			System.out.println("Can't move/copy/delete file");
			e1.printStackTrace();
		}
		// Combo boxes
		if (e.getSource() == MainWindow.leftComboBox) {
			LOG.info("leftComboBox disk changed to "
					+ MainWindow.leftComboBox.getSelectedItem().toString());

			MainWindow.leftTableModel.changeViewedFolder(new File(
					MainWindow.leftComboBox.getSelectedItem().toString()));
			return;

		}

		if (e.getSource() == MainWindow.rightComboBox) {
			LOG.info("rightComboBox disk changed to "
					+ MainWindow.rightComboBox.getSelectedItem().toString());

			MainWindow.rightTableModel.changeViewedFolder(new File(
					MainWindow.rightComboBox.getSelectedItem().toString()));
			return;
		}

		// Check boxes
		if (e.getSource().getClass() == JCheckBox.class) {
			System.out.println("check box " + e.getActionCommand());
			MainWindow.rightTableModel.addColumns(
					MainWindow.rightSizeCheckbox.isSelected(),
					MainWindow.rightDateCheckbox.isSelected());
			MainWindow.leftTableModel.addColumns(
					MainWindow.leftSizeCheckBox.isSelected(),
					MainWindow.leftDateCheckBox.isSelected());
			
		}
	}