fixes the redirect on accepting and denying invites