Add "auto-enabled" to ui views (set a pointer to a bool that decides whether the view is enabled or not)