   });
 
   server.on( "/api/setchannelcolor", []() {
-    int thisChannel;
+    int channelNumber;
     if ( server.hasArg( "channel" ) ) {
-      thisChannel = server.arg( "channel" ).toInt();
-      Serial.println(thisChannel);
-      if ( thisChannel < 0 || thisChannel > NUMBER_OF_CHANNELS ) {
+      channelNumber = server.arg( "channel" ).toInt();
+      Serial.println(channelNumber);
+      if ( channelNumber < 0 || channelNumber > NUMBER_OF_CHANNELS ) {
         server.send( 400,  textplainHEADER, "Invalid channel." );
         return;
       }

    if ( server.hasArg( "newcolor" ) ) {
      String newColor = "#" + server.arg( "newcolor" );
      newColor.trim();
      channel[thisChannel].color = newColor;
      saveChannelColor( thisChannel );
      server.send( 200, textplainHEADER , "Success" );
      return;
    }

  });

  server.on( "/api/setchannelname", []() {
    int channelNumber;
    if ( server.hasArg( "channel" ) ) {
      channelNumber = server.arg( "channel" ).toInt();
      if ( channelNumber < 0 || channelNumber > NUMBER_OF_CHANNELS ) {
        server.send( 400, textplainHEADER, "Invalid channel." );
        return;
      }
