Working Table1 and Table2 generated in HTML