added destroy function to tags