Adding Listener and Thread to handle Chat groups