move lights control to a common component