make it possible to add more than one onEnter/onLeave callback per state