Added destroying of collection and view.