add debug mode in guicontroller
christian