extracted fetching of json data to Service