Programmatically builds table and adds bottom rows