MainWindow

Improved XAML organization, check to save changed file when opening new
file.