Defining the Editor modes