modify tabletooldialog to use qtablewidget for input