private void compareVersions(){ // update GUI and modsArray based on new information from user
		update.setIcon(mcmods);
		int temp = webReader.readFileFromServer(onlineLocation.getText());
		if(temp == -1){
			//error getting file
			details.setText("ERROR CONNECTING TO SERVER");
			notice.showNotice("ERROR", "COULD NOT CONNECT TO SERVER");
		}
		boolean localAvailable = false;
		//get list versions and populate mods array
		if(temp == 0){
			if(localReader.readFileFromSystem(modsPath) == ReadXML.Status.SUCCESS){ // if the file exists on the system
				listVersions.setText("ModList versions| Latest: " + webReader.getListVersion() + "\t On System: " + localReader.getListVersion());
				if(webReader.getVersion().isBiggerVersion(localReader.getVersion())){ // if web version is bigger change update icon
					update.setIcon(mcimgupdate);
				}
				localAvailable = true;
			}

			else{ // otherwise the version is unknown and localReader.getListVersion will cause an error (filenotfound)
				listVersions.setText("ModList versions| Latest: " + webReader.getListVersion() + "\t On System: " + "Unknown (probably not installed yet)");
				update.setIcon(mcimgupdate);
			}
			populateModsArray(localAvailable, modsPath); 
		}

	}