separated showTable from selectRow