renamed Editor to Document