update the active state to be an object instead of an array