modify cocogui for ui editor