Added with, foreach and some styling.
Avoid page breaks inside tables.