added handling of today-only table, fixed bug when using <th>