refactored add object in EditComplexScriptObject