     server.on("/relay3On", [](){
     server.send(200, "text/html", webPage);
     // Turn on RELAY
-    digitalWrite(k3Pin, LOW);
+    mcp.digitalWrite(2, LOW);
     Serial.println("RELAY 3 ON");
     delay(500);
   });
   server.on("/relay3Off", [](){
     server.send(200, "text/html", webPage);
     //Turn off RELAY
-    digitalWrite(k3Pin, HIGH);
+    mcp.digitalWrite(2, HIGH);
     Serial.println("RELAY 3 OFF");
     delay(500); 
   });

  webPage += "<p>Relay #6 ";
  webPage += "<a href=\"relay6On\"><button>ON</button></a>&nbsp;";
  webPage += "<a href=\"relay6Off\"><button>OFF</button></a></p>";
/*
//Relay 7 button objects
  webPage += "<p>Relay #7 ";
  webPage += "<a href=\"relay7On\"><button>ON</button></a>&nbsp;";

  server.on("/relay1On", [](){
    server.send(200, "text/html", webPage);
    // Turn on RELAY
    mcp.digitalWrite(0, LOW);
    Serial.println("RELAY 1 ON");
    delay(500);
  });
  server.on("/relay1Off", [](){
    server.send(200, "text/html", webPage);
    //Turn off RELAY
    mcp.digitalWrite(0, HIGH);;
    Serial.println("RELAY 1 OFF");
    delay(500); 
  });
