added ability to page through records