Simplified the Table of Contents rendering.