   const float    HEIGHT_FACTOR    = BARS_HEIGHT / 100.0;
 
   static wl_status_t   currentWiFiStatus;
-  static lightStatus_t currentLightStatus;
+  static lightStatus_t tftLightStatus;
 
   button_t networkArea
   {

};

/* slider for backlight control - note: XPOS is center of slider*/
const uint16_t SLIDER_XPOS = 160;
const uint16_t SLIDER_YPOS = 40;
const uint16_t SLIDER_WIDTH = 60;
const uint16_t SLIDER_HEIGHT = 180;

/* area to check for touch to control backlight */
const button_t sliderArea
{
  SLIDER_XPOS - SLIDER_WIDTH / 2, SLIDER_YPOS, SLIDER_WIDTH, SLIDER_HEIGHT
};

/* buttons used on main screen */

        showMenu();
        break;

      default:
        break;
    }
    vTaskDelay( tftTaskdelayTime );
  }
}

static inline __attribute__((always_inline)) void showMenu()
{
  static lightStatus_t tftLightStatus;

  if ( tftClearScreen )
  {
    tft.fillScreen( ILI9341_BLACK );
    drawMenuButtons();
    drawBacklightSlider( BL_SLIDER_AREA, "backlight" );
    ledcWrite( TFT_BACKLIGHT_CHANNEL, map( tftBrightness, 0, 100, 0, backlightMaxvalue ) );
    tftClearScreen = false;
    tftLightStatus = lightStatus;
  }

  /* check if tftBrightness has changed */
  if ( map( tftBrightness, 0, 100, 0, backlightMaxvalue ) != ledcRead( TFT_BACKLIGHT_CHANNEL ) )
  { /* set new backlight value */
    ledcWrite( TFT_BACKLIGHT_CHANNEL, map( tftBrightness, 0, 100, 0, backlightMaxvalue ) );
    drawBacklightSlider( BL_SLIDER_AREA, "" );
  }

  /* check if light status has changed */
  if ( tftLightStatus != lightStatus )
  {
    drawMenuButtons();
    tftLightStatus = lightStatus;
  }

  if ( touch.tirqTouched() )
