added lights on/off function