add BaseViewModel and BaseWindow.