managed to get the table to span through multiple pages