Fixed bug in connection requests

Added code that was missing from the last commit to show the correct
message and buttons in the connection request modal.