             } else if (header.indexOf("GET /command/8") >= 0) {
               Serial.println("8");
               return '8';
-            } else return '-';
+            } else return 'i';
 }
 
 void loop() {

  Serial.println("WIFI IP address");
  Serial.println(WiFi.localIP());
  server.begin();
}

void showPage(WifiClient& client){
	client.println("<!DOCTYPE html><html> <head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">");
        client.println("<link rel=\"icon\" href=\"data:,\">");
            client.println("<style>html { font-family: Helvetica; display: inline-block; margin: 0px auto; text-align: center;}");

 // turns the GPIOs on and off
	    if(header.length() < 14) return 'i';
            if (header.indexOf("GET /command/f") >= 0) {
              lastCommand = 'f';
              Serial.println("f");
              return 'f';
            } else if (header.indexOf("GET /command/b") >= 0) {
              lastCommand = 'b';
              Serial.println("b");
              return 'b';
            } else if (header.indexOf("GET /command/r") >= 0) {
              lastCommand = 'b';
              Serial.println("r");
              return 'r';
            } else if (header.indexOf("GET /command/l") >= 0) {
              lastCommand = 'l';
              Serial.println("l");
              return 'l';
            } else if (header.indexOf("GET /command/x") >= 0) {
              lastCommand = 'x';
              Serial.println("x");
              return 'x';
            } else if (header.indexOf("GET /command/a") >= 0) {
              lastCommand = 'a';
              Serial.println("a");
              return 'a';
            } else if (header.indexOf("GET /command/u") >= 0) {
              lastCommand = 'u';
              Serial.println("u");
              return 'u';
            } else if (header.indexOf("GET /command/d") >= 0) {
              lastCommand = 'd';
              Serial.println("d");
              return 'd';
            } else if (header.indexOf("GET /command/c") >= 0) {
              lastCommand = 'c';
              Serial.println("c");
              return 'c';
            } else if (header.indexOf("GET /command/0") >= 0) {
