fixing active tag
less complicated
less complicated
split init handlers