           mainController.once "accountChanged.to.loggedIn", =>
             if groupName and KD.isLoggedIn()
               @joinGroup_ groupName, (res)=>
-                unless res then return @notifyError_ "Joining to #{groupName} group failed"
+                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 then callback?()
-          else @notifyError_ "Joining to #{groupName} group failed 2"
+          if res
+
+            callback?()
+          else @notify_ "Joining to #{groupName} group failed", "error"
       else callback?()
 
   joinGroup_:(groupName, callback)->

    unless KD.isLoggedIn()
      # if there is fail message, display it
      if onFailMsg
        @notifyError_ onFailMsg

      # if there is fail method, call it
      onFail?()

      if err then new KDNotificationView title: err.message
      else location.reload()

  notify_:(message, type)->
    console.log message
    new KDNotificationView
      cssClass : "#{type}"
      title    : message
      duration : 3500

