@FXML
	private void ok(ActionEvent event) throws IOException {
		File file = null;
		if(!needsFileChooserWorkaround()) {
			FileChooser fileChooser = new FileChooser();
			fileChooser.setInitialDirectory(new File("."));
			fileChooser.getExtensionFilters().add(new ExtensionFilter("XML files (*.xml)", "*.xml"));		
			file = fileChooser.showOpenDialog(null);
		} else {
			// TODO workaround for JavaFX bug: FileChooser not running under 64 bit Windows
			// see http://www.javaworld.com/javaworld/jw-05-2012/120529-jtip-deploying-javafx.html?page=3
		   class FileNameFilter extends FileFilter {
		      public boolean accept(File arg0) {
		         if(arg0.isDirectory()) return true;
		         if(arg0.getName().endsWith("xml")) return true;
		         return false;
		      }
		      public String getDescription() {
		         return "XML files (*.xml)";
		      }
		   }		
		   JFileChooser chooser = new JFileChooser(".");
		   FileNameFilter filter = new FileNameFilter();
		   chooser.setFileFilter(filter);
		   int returnVal = chooser.showOpenDialog(null);
		   if(returnVal == JFileChooser.APPROVE_OPTION) {
			   file=chooser.getSelectedFile();
		   }		
		}		
		if (HockmanMain.game != null) {
			GameCreator.instance().deInit(HockmanMain.game);
			HockmanMain.game = null;
		}
		if(file == null) {
			HockmanMain.msgBoxLbl = "Could not load league";
			HockmanMain.stageHandler.showModalStageAndWait("MessageBox.fxml", Util.getModelResourceBundle().getString("L_MASKTITLE_MESSAGEBOX"));
			HockmanMain.stageHandler.closeModalStage();
			return;
		}

		LeagueCreator.instance().setCurrFileName(file.getAbsolutePath());
		GameCreator.instance().setCurrFileName("");

		League league = null;
		// Switch between loading league in old format or xml format
		// League league= LeagueCreator.Instance().LoadLgu();
		try {
			league = LeagueCreator.instance().loadLguXML();
		} catch (Throwable e) {
			HockmanMain.msgBoxLbl = "Exception " + e.getClass().getName()
					+ "\n\n" + e.getMessage();
			HockmanMain.stageHandler.showModalStageAndWait("MessageBox.fxml", Util.getModelResourceBundle().getString("L_MASKTITLE_MESSAGEBOX"));
			HockmanMain.stageHandler.closeModalStage();
			return;
		}
		if (league == null) {
			HockmanMain.msgBoxLbl = "Could not load league";
			HockmanMain.stageHandler.showModalStageAndWait("MessageBox.fxml", Util.getModelResourceBundle().getString("L_MASKTITLE_MESSAGEBOX"));
			HockmanMain.stageHandler.closeModalStage();
		} else {
			// deinit old game, create new game and assign league to it
			ch.hockman.model.Options.reset();
			HockmanMain.game = GameCreator.instance().newGame(league);
			HockmanMain.stageHandler.closeModalStage();
		}
	}