fixed invitemembers and modal dialogs close fn