cleaning up MainWrapperView.