Added regions and CancelEdit method