  */
 void handleRoot()
 {
-  server.send(200, "text/html", "<h1>You are connected</h1><br/><a href='wlanSetup'>Setup WLAN</a>");
+  server.send(200, "text/html", "<!doctype html><body><head></head><html><h1>You are connected</h1><br><a href=\"wlanSetup\">Setup WLAN</a></body></html>");
 }
 
 void handleWlanSetup()
 {
-  server.send(200, "text/html", "<h1>You are connected</h1><form method='POST' action='/wlanSetupConfirm'><a>SSID</a><input type='text' name='ssid' /><br /> <a>pwd</a><input type='text' name='password' /><br /> <input type='submit' value='Update' /></form>");
+  server.send(200, "text/html", "<!doctype html><body><head></head><html><h1>You are connected</h1><form method=\"POST\" action=\"/wlanSetupConfirm\"><label id=\"ssid\">SSID</label><input id=\"ssid\" name=\"ssid\"><br><label id=\"pwd\">pwd</label><input id=\"pwd\" name=\"password\"><br><input type=\"submit\" value=\"Update\"></form></body></html>");
 }
 
 void handlePwdPost()

  delay(1);

}






  String valStr = server.arg("value");
  Serial.print("new Value = " + valStr);
  curPwmOut = (uint16_t)valStr.toInt();
  server.send(200, "application/json", "{\"status\":\"Value Set to" + String(curPwmOut) + "\",\"value\":"+curPwmOut+"}");
}


