refactoring on myGUI in progress

this is horrible code