     , currentGroupData
 
     # handle group related decisions
-    @initializeGroup()
+    groupsController.on 'GroupChanged', @bound 'initializeGroup'
 
     @navController = new NavigationController
       view           : new NavigationList

      @groupAvatar.setClass 'flash'
      @avatarHeader.setData currentGroupData
      @avatarHeader.show()
#    else
#      @avatar.unsetClass 'shared-avatar'
#      @avatar.setWidth 160
#      @groupAvatar.hide()
#      @groupAvatar.unsetClass 'flash'
#      @avatarHeader.setData currentGroupData
#      @avatarHeader.hide()
    @render()


  setListeners:->


    @_finderExpanded  = no
    @_popupIsActive   = no

    groupsController = @getSingleton 'groupsController'

    currentGroupData = groupsController.getCurrentGroupData()

    @avatar = new AvatarView
      tagName    : "div"
