Changes to view destroy method