public void save(MenuItem selectedItem) {
		if (selectedItem.getText().equalsIgnoreCase("Save")) {
    		//check if logged in...
    		Website2EbookmakerApplication app = ((Website2EbookmakerApplication)MainLayout.this.getApplication());
    		if (((Account) app.getUser()).isGuest()) {
    			app.login();
    			MainLayout.this.lastCommandBeforeLogin = "save";
    			MainLayout.this.lastCommandParams.add(selectedItem);
    		}
    		else {
    			StringBuilder jsonString = new StringBuilder();
				jsonString.append('{');
				jsonString.append("\"" + "Key" + "\": {");
					String websitenameString = websitename.replace("http://www.", "");
    			for (String page: app.getWebScraper().getPages()) {
    				jsonString.append("\"" + websitenameString + "\": \"" + app.getWebScraper().getPageText(page).replace(websitename, "").substring(1) + "\",");
    			}
    			jsonString.setCharAt(jsonString.length()-1, ' ');
    			jsonString.append("}}");
				int responseCode = CloudMineStorage.updateWebpageData(jsonString.toString(), ((Account)app.getUser()).getPasswordHash());
    			if (responseCode == 200 || responseCode == 201) {
    				System.out.println("Saved!");
    			}
    			else {
    				//System.out.println(jsonString.toString());
    				System.out.println("Save failed! Error code: " + responseCode);
    			}
    		}
    	}
	}