rewriting 'table' div so subsequent query searches work.