added pagination with data retrieval, tree view
added pagination with data retrieval, tree view