use ob_start to capture the table output