more work on destroy view