fixed online/offline status update