Added display logic for socket data