calling setTableHead function