using TT; added boilers for table and pagination