GUI: add generation of the special lists.
Compact code.