Added method to setEditOptions