             $scope.transfer_info.amount = ""
             my_transfer_form.amount.$setPristine()
             $scope.transfer_info.memo = ""
+            $scope.gravatar_account_name = ""
             Growl.notice "", "Transfer transaction broadcasted"
             $scope.model.t_active=true
         , (error) ->

                    $scope.add_to_address_book.error = "Unknown account"

    $scope.payToChanged = ->
        $scope.add_to_address_book.message = null
        $scope.add_to_address_book.error = null
        my_transfer_form?.payto.error_message = null
        payto = $scope.transfer_info.payto
        if Wallet.accounts[payto]
            $scope.gravatar_account_name = payto
        else
            BlockchainAPI.get_account(payto).then (result) ->
                $scope.gravatar_account_name = if result then payto else null

        $filter('filter')(Object.keys(Wallet.favorites),input)

    $scope.addToAddressBook = (name) ->
        error_handler = (error) ->
            message = Utils.formatAssertException(error.data.error.message)
            $scope.add_to_address_book.error = if message and message.length > 2 then message else ""
            $scope.newContactModal(true)

        WalletAPI.account_set_favorite(name, true, error_handler).then ->
            account = Wallet.accounts[name]
            if account
