Refactor the UI rendering of translate editor

Change-Id: If7bb12b9a8f55156eba0aa820afdbc6ab27b6683