added listen function to the communication frontend