     Serial.println("");
     Serial.println("webtype 1 selected");
     server.on("/", []() {
+        Serial.println("");
+        Serial.println("server received /");
         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 ";

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

void setup() {
  Serial.begin(115200);
  EEPROM.begin(512);
  //pinMode(0, INPUT);
  pinMode(2, INPUT);
  WiFi.begin();
  delay(1000);
  Serial.println("");
  Serial.println("delay done");
  Serial.println(digitalRead(2));
   if (digitalRead(2)==false)
  { 
    Serial.println("button pressed at beginning");
    delay(250);
     if (digitalRead(2)==true)setupAP();
     while(1){server.handleClient();delay(10);}
    
  }
  else{
  Serial.println(""); 
  redEEPromRead();
  Serial.println("");
