Maybe this functionality can be put in the widget class. With additional methods like ```set_active(self, active)``` and ```is_active(self)```