added dimming for the nightlight