add paging and loading indicator