move modes to editor
remove unused import