saving data from Environment to MainWindow