update table widget's size