added to dispose a model in the view.