added total and page to index json