     _handleCutInput: (event) ->
       # Timeout so that the cut event completes and the input has data.
       $.doTimeout 50, =>
-        if @inputAddress.val().length is 0
+        if @ui.inputAddress.val().length is 0
           @_clearErrors()
           @_clearCurrencyImage()
 
     _handleScanQr: ->
-      inputVal = @inputAddress.val()
+      inputVal = @ui.inputAddress.val()
       @_clearErrors()
       @_clearCurrencyImage()
 

    id: 'address-form'
    tagName: 'article'

    events:
      'keydown .address-public-address': '_handleKeyupInput'
      'paste .address-public-address': '_handlePasteInput'
      'cut .address-public-address': '_handleCutInput'
      'click .btn-save': '_handleSave'
      'click .btn-cancel': '_handleCancel'

    initialize: ->
      @listenTo App.vent, 'scan:qr', @_handleScanQr

    onShow: ->
      @balance = @$('.address-balance')
      @currencyType = @$('.currency-type')
      @inputAddress = @$('.address-public-address')
      @inputName = @$('.address-name')
      @hiddenAddress = @$('.hidden-public-address')
      @hiddenAddressFirstbits = @$('.hidden-public-firstbits')
      @btnQrScan = @$('.scan-qr')
      @btnSave = @$('.btn-save')
      @btnCancel = @$('.btn-cancel')

    _handleKeyupInput:
      _.debounce (event) ->

    _handlePasteInput: (event) ->
      # Timeout so that the paste event completes and the input has data.
      $.doTimeout 50, =>
        inputVal = @ui.inputAddress.val()
        @_clearErrors()
        @_clearCurrencyImage()

