@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == cancelButton) {
			dispose();
		} else if (e.getSource() == nextButton) {
			switchToPage(currentPage.getNextPage());
		} else if (e.getSource() == previousButton) {
			switchToPage(currentPage.getPreviousPage());
		} else if (e.getSource() == finishButton) {
			finishPressed = true;
			dispose();
		}
	}