GUI-related security functions