refactor: move editor related code from streamCtrl into an editorCtrl