issue #4221 Refactor constant for gui