buildTableHeaders general method added