Refactor MyGUI