handle units in AmountEdit