Made chat functional with new GUI.