refactor Canopsis.editMode to controller.editMode