       @div outlet: 'btn2', class: 'btn2 btn btn-lg btn-info',  'Login'
 
   initialize: (params) ->
-    @aTox        = params.aTox
-    @authManager = @aTox.authManager
+    @aTox    = params.aTox
+    @manager = @aTox.manager
 
     @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    'error'   for i in [@h1, @h2]
    @aTox.gui.notify {
      type:     'err'
      name:     name
      content:  desc
    }
    @aTox.term.err {msg: desc, notify: false}
    @doTimeout 2500, =>
      i.removeClass 'error' for i in [@h1, @h2]


    @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()
