Added receiving functionality to the GUI