  // 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'
+              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) {

            
            char command = getCommand(header);
            
            if(command == i) showPage(client);
            break;
          } else { // if you got a newline, then clear currentLine
            currentLine = "";

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

void loop() {
