add isLoading to model