Added main to chatGUI and action listeners to various buttons