@Override
		public void actionPerformed(ActionEvent e) {
			if (e.getSource() == ManageCourseUI.this.btnDiscard) {
				int reply = JOptionPane.showConfirmDialog(null,
						"Are you sure you want discard what you have made?\n"
								+ "Warning: It will not be saved.",
						"Discard Message", JOptionPane.YES_NO_OPTION);
				if (reply == JOptionPane.YES_OPTION) {
					MainFrame.updateFrame(
							new AdminManagerUI().getAdminManagerUI(),
							"Admin Manager");
				}
			}

			else if (e.getSource() == ManageCourseUI.this.btnSaveCourse) {
				if (ManageCourseUI.this.txtCourseName.getText().equals("")) {
					JOptionPane.showMessageDialog(null,
							"You have to write a course name!");
				} else {
					ManageCourseUI.this.presenter.saveCourse(ManageCourseUI.this.txtCourseName.getText());
				}
			}

			else if (e.getSource() == ManageCourseUI.this.btnAddCourse) {
				ManageCourseUI.this.presenter.add();
				syncTables();
			}

			else if (e.getSource() == ManageCourseUI.this.btnRemoveCourse) {
				ManageCourseUI.this.presenter.remove();
				syncTables();
			}

			else if (e.getSource() == ManageCourseUI.this.btnFilter) {
				String comboBoxValue = (String) ManageCourseUI.this.filterBox.getSelectedItem();
				String by = ManageCourseUI.this.txtFilter.getText();

				ManageCourseUI.this.presenter.filter(comboBoxValue, by);
				syncTables();
			}

			else if (e.getSource() == ManageCourseUI.this.btnHelp) {
				JOptionPane.showMessageDialog(null,
						HelpPresenter.getManageCourseHelp(),
						HelpPresenter.getManageCourseTitle(),
						JOptionPane.PLAIN_MESSAGE, HelpPresenter.getHelpIcon());
			}
		}