Properly update online/offline icon