Added light sensor feedback and synchronized ui refresh