         title     : if err then "There was an error sending your message - try again" else "Message Sent!"
         duration  : 1000
       message.mark 'read'
-      newMessageBar.emit 'RefreshButtonClicked'
+      newMessageBar?.emit 'RefreshButtonClicked'
       callback? err, message

      newMessageBar.enableMessageActionButtons()
      @selectMessage data, item, paneView

    @on 'MessageShouldBeSent', ({formOutput,callback})=>
      @prepareMessage formOutput, callback, newMessageBar


    super options, data

    @selection = {}

    @on 'MessageShouldBeSent', ({formOutput,callback})=>
      @prepareMessage formOutput, callback

  fetchMessages:(options, callback)->
    KD.whoami().fetchMail? options, callback
