refactoring gui options into global attributes