Set up the signal events through the ui for the MainWindow.