get rid of sync xhr in editor