turn pagenums inside tables into rows