handling of guis via an enumeration