changing removal when online/offline