         height   : 25
     , account
 
-    @groupSwitcherPopup = new AvatarPopupGroupSwitcher
-      cssClass : "group-switcher"
+    @accountPopup = new AccountPopup
 
-    @groupsSwitcherIcon = new AvatarAreaIconLink
-      cssClass   : 'groups acc-dropdown-icon'
+    @accountIcon = new AvatarAreaIconLink
+      cssClass   : 'acc-dropdown-icon'
       attributes :
-        title    : 'Your groups'
+        title    : 'Account'
         testpath : 'AvatarAreaIconLink'
-      delegate   : @groupSwitcherPopup
+      delegate   : @accountPopup
 
     @notificationsPopup = new PopupNotifications
-      cssClass : "notification-list"
+      cssClass : 'notification-list'
 
     @notificationsIcon = new AvatarAreaIconLink
       cssClass   : 'notifications acc-notification-icon'

kd = require 'kd'
KDCustomHTMLView = kd.CustomHTMLView
AvatarAreaIconLink = require './avatarareaiconlink'
AvatarPopupGroupSwitcher = require './avatarpopupgroupswitcher'
AvatarView = require '../commonviews/avatarviews/avatarview'
JView = require '../jview'
PopupNotifications = require '../notifications/popupnotifications'

        title    : 'Notifications'
      delegate   : @notificationsPopup


    @on 'viewAppended', ->

      mainView.addSubView @accountPopup
      mainView.addSubView @notificationsPopup

      @notificationsPopup.on 'NotificationCountDidChange', (count)=>
        kd.utils.killWait @notificationsPopup.loaderTimeout
        @notificationsIcon.updateCount count


  pistachio: ->
