 
       # Fetch Private Messages
       messagesPopup.listController.fetchMessages()
-
-      # Fetch Groups
-      groupSwitcherPopup.populateGroups()
-      groupSwitcherPopup.populatePendingGroups()
-


    @setClass "account-menu"

    sidebar  = @getDelegate()

    @notificationsPopup = new AvatarPopupNotifications
      cssClass : "notifications"
      delegate : sidebar

    @messagesPopup = new AvatarPopupMessages
      cssClass : "messages"
      delegate : sidebar

    @groupSwitcherPopup = new AvatarPopupGroupSwitcher
      cssClass : "group-switcher"
      delegate : sidebar

    @notificationsIcon = new AvatarAreaIconLink
      cssClass   : 'notifications'
      attributes :
        title    : 'Notifications'
      delegate   : @notificationsPopup

    @messagesIcon = new AvatarAreaIconLink
      cssClass   : 'messages'
      testPath   : "avatararea-messages-icon"
      attributes :
        title    : 'Messages'
      delegate   : @messagesPopup

    @groupsSwitcherIcon = new AvatarAreaIconLink
      cssClass   : 'group-switcher hidden'
      attributes :
        title    : 'Your groups'
      delegate   : @groupSwitcherPopup

    @accountIcon = new KDCustomHTMLView
      tagName    : "a"
      cssClass   : 'account'
      attributes :
        title    : 'Account Settings'
        href     : "#"

      else @messagesPopup.noMessage.show()
      @messagesIcon.updateCount count


  accountChanged:(account)->

    {notificationsPopup, messagesPopup} = this

    messagesPopup.listController.removeAllItems()
    notificationsPopup.listController.removeAllItems()

    if KD.isLoggedIn()

