make tag active smartly