Adding state to toctree