Refactored add/remove translation during edit mode.