Update table of contents with optionals