Renamed the view model to MainViewModel consistent with the View.