     @panel.show() unless @panel.isVisible() is true
     i.removeClass 'working' for i in [@h1, @h2, @working]
     i.addClass    'error'   for i in [@h1, @h2]
-    @aTox.gui.notify {
-      type:     'err'
-      name:     name
-      content:  desc
-    }
-    @aTox.term.err {msg: desc, notify: false}
+    @aTox.term.err {"tile": "Failed to create token", "msg": desc}
     @doTimeout 2500, =>
       i.removeClass 'error' for i in [@h1, @h2]
 

      @div outlet: 'btn2', class: 'btn2 btn btn-lg btn-info',  'Login'

  initialize: (params) ->
    @aTox        = params.aTox
    @authManager = @aTox.authManager

    @panel = atom.workspace.addModalPanel {item: this, visible: false}


    @panel.show() unless @panel.isVisible() is true
    i.removeClass 'working' for i in [@h1, @h2, @working]
    i.addClass    'success' for i in [@h1, @h2]
    @aTox.term.inf {"title": "Generated new token", "msg": "#{token}"}
    @doTimeout 2500, =>
      @isOpen = false
      @hide()
