updated indicator leds logic