GUI integration functions

UI needs to know about action listener, Main needs to tell UI when peers
connect and disconnected.