move maybeDo to Control file
move editor functionality to one file