relocated gui constants, localized gui functions