added support for header cells in tables