some changes for adding xml editor;