Sync when online is detected