configured tableView with MainWindow class.