implements paging and navitab.