Added pagination and optimized data fetching splitting in multiple json calls