Another suggestion: this function seems to used at least twice, we'd better do:
```
_get_remaining_item_count = Widgets._get_remaining_item_count
```
right after class declaration