private void selectedProfile() {
		try {
			String name = profileList.getSelectedValue().toString();
			con.log("Log","Selected profile " + name);
			for(int i=profiles.size()-1; i>=0; i--) {
				Profile p = profiles.get(i);
				if(name.equals(p.name)){
					selProfile = p; //selected profile
					i=0;
					lblModsEnabled.setText("Enabled Mods: "+selProfile.mods.size());
					updateEnabledMods();
				}
			}
			writeData();
		} catch (Exception e) {
			con.log("Warning", "Failed to select the previously selected profile on launch");
		}
	}