       snprintf( channel[ channelNumber ].color, sizeof( channel[ channelNumber ].color ), "#%s", request->arg( "color" ).c_str() );
       snprintf( nvsKeyname, sizeof( nvsKeyname ), "channelcolor%i", channelNumber );
       preferences.putString( nvsKeyname, channel[channelNumber].color );
-      response = request->beginResponseStream( HEADER_HTML );
+      AsyncResponseStream *response = request->beginResponseStream( HEADER_HTML );
       response->printf( "channel %i color set to %s", channelNumber + 1, channel[ channelNumber ].color );
       return request->send( response );
     }

      }
      snprintf( nvsKeyname, sizeof( nvsKeyname ), "channelname%i", channelNumber );
      preferences.putString( nvsKeyname, channel[channelNumber].name );
      response = request->beginResponseStream( HEADER_HTML );
      response->printf( "channel %i name set to '%s'", channelNumber + 1, channel[ channelNumber ].name );
      return request->send( response );
    }

    {
      return request->requestAuthentication();
    }
    uint8_t channelNumber;
    char   nvsKeyname[16];
    channelNumber = checkChannelNumber( request);
