add Defines and GUI modify