 
   kick: ->
 
-    { groupsController } = kd.singletons
-    groupsController.ready =>
-      groupsController.getCurrentGroup().kickMember @getData().getId(), (err) =>
+    kd.singletons.groupsController.getCurrentGroup().kickMember @getData().getId(), (err) =>
 
-        return @handleError @actionButtons.kick, 'Failed to kick user. Please try again.'  if err
+      return @handleError @actionButtons.kick, 'Failed to kick user. Please try again.'  if err
 
-        @destroy()
+      @destroy()
 
 
   toggleSettings: ->


  handleRoleChange: (newRole) ->

    { groupsController } = kd.singletons
    button   = @actionButtons[newRole]
    jAccount = @getData()



    @isInProgress = yes

    group    = kd.singletons.groupsController.getCurrentGroup()
    newRoles = [ newRole ]

    newRoles.push 'admin'  if newRole is 'owner'

    group.changeMemberRoles jAccount.getId(), newRoles, (err, response) =>
      return @handleError button  if err

      group.fetchUserRoles [ jAccount.getId() ], (err, roles) =>

        return @handleError button  if err

        data        = @getData()
        data.roles  = (role.as for role in roles)
        @memberRole = @getRole data.roles

        @roleLabel.updatePartial "#{@memberRole.label} <span class='settings-icon'></span>"
        @settings.destroySubViews()
        @createSettingsView()

        @isInProgress = no


  handleError: (button, message) ->
