changed invite window to hide when invite is pending