Moved the implementation from the control to the view model for the main host control.