WIP: The active category have to set when the state is changed.