added editMode