Update Task class, MainWindow