search table append th to thead