improve the features of table widget