   server.on( "/api/getchannelnames", []()
   {
     String response;
-    for ( byte thisChannel = 0; thisChannel < NUMBER_OF_CHANNELS; thisChannel++ )
-    {
-      response += channel[thisChannel].name + "\n";
+    for ( byte channelNumber = 0; channelNumber < NUMBER_OF_CHANNELS; channelNumber++ )
+    {
+      response += channel[channelNumber].name + "\n";
     }
     server.setContentLength( response.length()  );
     server.send( 200, textplainHEADER, response );

    server.send( 200, texthtmlHEADER, response );
  });


  server.on( "/api/loadtimers", []() {
    server.send( 200, textplainHEADER, loadDefaultTimers() ? "Succes" : "Failed" );
    struct tm timeinfo;
    getLocalTime(&timeinfo);
    time_t secondsToday = ( timeinfo.tm_hour * 3600 ) + ( timeinfo.tm_min * 60 ) + timeinfo.tm_sec;
    for ( byte thisChannel = 0; thisChannel < NUMBER_OF_CHANNELS; thisChannel++ )
    {
      setPercentageFromProgram( thisChannel, secondsToday );
    }
  });


  });

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