Changed enableEditMode to toggleEditMode