Added ViewModel to the main window.