added method updateTagsHash to update the HashMap tags after undo of clear