replacing HAS_GUI with setter/getter (issue #227)