switching lights active/inactive