Communicating with the GUI