CHANGED:applied the popupFriendTalk function