changed tag.tag to tag.label, also modified active tag code to be
dependent on label instead of the whole tag; this fixes a bug