state manager works now, added functionality to light.html