 
       modal = new KDModalView modalOptions
 
-  cancelMembershipPolicyChange:(policy, membershipPolicyView, modal)->
-    membershipPolicyView.enableInvitations.setValue policy.invitationsEnabled
-
-  updateMembershipPolicy:(group, policy, formData, membershipPolicyView, callback)->
-    group.modifyMembershipPolicy formData, (err)->
-      unless err
-        policy.emit 'MembershipPolicyChangeSaved'
-        new KDNotificationView {title:"Membership policy has been updated."}
-      KD.showError err
 
   editPermissions:(group)->
     group.getData().fetchPermissions (err, permissionSet)->

              modal.destroy()
              callback null

  joinGroup:(group, callback)->
    group.join (err, response)=>
      unless err
        callback err, response
        KD.track "Groups", "JoinedGroup", group.slug
        KD.getSingleton('mainController').emit 'JoinedGroup'

  acceptInvitation:(group, callback)->
    KD.whoami().acceptInvitation group, (err, res)=>
      mainController = KD.getSingleton "mainController"
      mainController.once "AccountChanged", callback.bind this, err, res
      mainController.accountChanged KD.whoami()

  ignoreInvitation:(group, callback)->
    KD.whoami().ignoreInvitation group, callback

  cancelGroupRequest:(group, callback)->
    KD.whoami().cancelRequest group, callback

  openPrivateGroup:(group)->
    group.canOpenGroup (err, hasPermission)=>
      if err

      if pageInfo.topLevel
      then router.handleRoute "#{pageInfo.path}"
      else router.handleRoute "#{pageInfo.path}", {entryPoint}

  onboardingText =
    everything : """
