dismiss the diaglog fragment after clicking invite.