added check for backlight state on button script