Made textbox a part of the MainWindow class.