refactoring in chiferModuleGUI