working on on/off and brightness set code