implementing modal dialog to send an invite to a friend