parameterize table and add thead.