@Override
	public void actionPerformed(ActionEvent e) {

		try {
			if (e.getSource() instanceof JButton) {
				LOGGER.debug("button pressed");
				if (currentGuiInstance instanceof FormMain) {
					controller.btnPressedFormMain(e);
				} else if (currentGuiInstance instanceof DvdForm) {
					controller.btnPressedDvdForm(e);
				} else if (currentGuiInstance instanceof UserForm) {
					controller.btnPressedUserForm(e);
				} else {
					controller.btnPressedLoginForm(e);
				}
			} else if (e.getSource() instanceof JMenuItem) {
				controller.menuItemClicked(e);
			}

		} catch (NumberFormatException e1) {
			e1.printStackTrace();
		} catch (IOException e1) {
			e1.printStackTrace();
		} catch (NoSuchAlgorithmException e1) {
			LOGGER.error("Password Encryption Error", e1);
		}
	}