change list for table
change list for table
adde the logic for tablewidget