refactor(editor): makes the dispatch more straightforward and more modal