changed <td> to <th> in table headers, added <thead>