@Override
		public void actionPerformed(ActionEvent e) {
			if (e.getSource() == ManageClassUI.this.btnDiscard) {
				int reply = JOptionPane.showConfirmDialog(null,
						"Are you sure you want to 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() == ManageClassUI.this.btnSaveClass) {
				int reply = JOptionPane.showConfirmDialog(null,
						"Are you sure you want to commit these changes?", 
						"Confirm Save", JOptionPane.YES_NO_OPTION);
				if (reply == JOptionPane.YES_OPTION) {
					ManageClassUI.this.presenter.save(
							ManageClassUI.this.txtClassName.getText(), Integer
									.parseInt(ManageClassUI.this.txtYear
											.getText()));
					syncWithPresenter();
				}
			}

			else if (e.getSource() == ManageClassUI.this.btnFilter) {
				String column = ManageClassUI.this.filterBox.getSelectedItem()
						.toString();
				String by = ManageClassUI.this.txtFilter.getText();

				ManageClassUI.this.presenter.filter(column, by);
				syncWithPresenter();
			}

			else if (e.getSource() == ManageClassUI.this.btnAddStudent) {
				ManageClassUI.this.presenter.add();
				syncWithPresenter();
			}

			else if (e.getSource() == ManageClassUI.this.btnRemoveStudent) {
				ManageClassUI.this.presenter.remove();
				syncWithPresenter();
			}

			else if (e.getSource() == ManageClassUI.this.btnHelp) {
				JOptionPane.showMessageDialog(null,
						HelpPresenter.getManageClassHelp(),
						HelpPresenter.getManageClassTitle(),
						JOptionPane.PLAIN_MESSAGE, HelpPresenter.getHelpIcon());
			}
		}