code cleanup in selectorGUI.