changed replacetag into toggletag