added paging and models