cleaned up the show hide functionality of the table and removed the truncation code