added setting the lights state