improved the layout of the tables and formatted the footers