cleaned up main window viewmodel