add trasition for switch