move editor events into MainViewManager