added tag active and tag select layer functions