private void toggleOptions() {
		if (gui.getOptionsMenu().isVisible()) {
			gui.getOptionsMenu().setVisible(false);
			gui.getOptionsButton().setActive(false);
		} else {
			for (OptionsField str : gui.getOptionsMenu().getOptionFields()) {
				switch (str.getOption()) {
				case HOSTNAME:
					str.setText(hostname);
					break;
				case NICKNAME:
					str.setText(user.getUsername());
					break;
				case PORT:
					str.setText(Integer.toString(getPort()));
					break;
				}
			}
			gui.getOptionsMenu().setVisible(true);
			gui.getOptionsButton().setActive(true);
		}
	}