separates data fetching from PieView