   Serial.println(WiFi.softAPIP());
   createWebServer(webtype);
   // Start the server
-  server.begin();
+  server.begin(); 
   Serial.println("Server started"); 
 }
 /////////////////////////////////////////////////////////////////////////////////////////////////////////
 void setupAP(void) {
-  client.disconnect();
   WiFi.mode(WIFI_STA);
   WiFi.disconnect();
   delay(100);

    Serial.println("");
    Serial.println("webtype 1 selected");
    server.on("/", []() {
        IPAddress ip = WiFi.softAPIP();
        String ipStr = String(ip[0]) + '.' + String(ip[1]) + '.' + String(ip[2]) + '.' + String(ip[3]);
        content = "<!DOCTYPE HTML>\r\n<html>Hello from ESP8266 at ";

    }
  st += "</ol>";
  delay(100);
  WiFi.softAP(ssid, passphrase, 6);
  Serial.println("softap");
  launchWeb(1);
  Serial.println("over");
