     unless KD.isLoggedIn()
       # if there is fail message, display it
       if onFailMsg
-        @notifyError_ onFailMsg
+        @notify_ onFailMsg, "error"
 
       # if there is fail method, call it
       onFail?()

    user.fetchGroups (err, groups)=>
      if err or !groups then return callback false
      @remote.api.JGroup.one { slug: groupName }, (err, currentGroup)=>
        if err then return @notifyError_ err.message
        for group in groups
          if groupName is group.group.slug
            return callback true
        currentGroup.join (err)=>
          if err then return callback false
          @notifyError_ "Joined to #{groupName} group!"
          return callback true

  jsonhTest:->

          mainController.once "accountChanged.to.loggedIn", =>
            if groupName and KD.isLoggedIn()
              @joinGroup_ groupName, (res)=>
                unless res then return @notify_ "Joining to #{groupName} group failed", "error"
                KD.lastFuncCall?()
                KD.lastFuncCall = null
        KD.lastFuncCall = callback
    else
      if groupName
        @joinGroup_ groupName, (res)=>
          if res

            callback?()
          else @notify_ "Joining to #{groupName} group failed", "error"
      else callback?()

  joinGroup_:(groupName, callback)->
