created truncate button on the table viewdata page