update online/offline button