Refactor the list catigories widget.