blinking state buttons in separate thread