added isLoading feature; fixes