   const uint16_t BARS_WIDTH       = 210 / 5; /* note: total width is 210 px */
   const float    HEIGHT_FACTOR    = BARS_HEIGHT / 100.0;
 
-  static wl_status_t   lastWiFiStatus;
-  static lightStatus_t lastLightStatus;
+  static wl_status_t   displayedWiFiStatus;
+  static lightStatus_t displayedLightStatus;
 
   uint16_t channelColor565[NUMBER_OF_CHANNELS];
 


        button.updateSensorLabel( tempArea[thisSensor], sensor[thisSensor].name );

        strncpy( savedSensor[thisSensor].name, sensor[thisSensor].name, sizeof( savedSensor[thisSensor].name ) );
      }
    }
  }

  }

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

  if ( touch.tirqTouched() )
