refactored editors to prototype