#11 rework of the table details code and other minor code cleaning
#11 something broke, but I continue cleaning
#11 fix the table details page