Add the warning message for deleting tags

Change some codes to make everything clearer, add a warning message
after delete the tag.