different active state handling and emit states on dom event