little fixes to leds and state updating