handle async loading when offline loading