selectorGUI: use a switch structure instead of a if/else if structure.