add behavior to enable a table of contents