updating to renderTable