Displaying the list of peers and adding a click handler.