added hook to alter thead and tbody after content generation