auto resize tablewidget when open from cmdline