Added code to enforce limit of lights per widget