adds destroy and cleans up views