update ui,implements the light