refactoring of setting the EditorType through implementing a update
function