@Override
		public void actionPerformed(ActionEvent e) {
			if (e.getSource() == ManageUserUI.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() == ManageUserUI.this.btnGeneratePassword) {
				JOptionPane.showMessageDialog(null, "Feature under development!");
			}

			else if (e.getSource() == ManageUserUI.this.btnSaveUser) {
				ManageUserUI.this.presenter.save(
						(String) ManageUserUI.this.userTypeBox
								.getSelectedItem(),
						ManageUserUI.this.txtFirstName.getText(),
						ManageUserUI.this.txtLastname.getText(),
						ManageUserUI.this.txtEmail.getText());
				syncWithPresenter();
			}

			else if (e.getSource() == ManageUserUI.this.btnAddClass) {
				ManageUserUI.this.presenter.add();
				syncWithPresenter();
			}

			else if (e.getSource() == ManageUserUI.this.btnRemoveClass) {
				ManageUserUI.this.presenter.remove();
				syncWithPresenter();
			}

			else if (e.getSource() == ManageUserUI.this.btnHelp) {
				JOptionPane.showMessageDialog(null,
						HelpPresenter.getManageUserHelp(),
						HelpPresenter.getManageUserTitle(),
						JOptionPane.PLAIN_MESSAGE, HelpPresenter.getHelpIcon());
			}
		}