toc & credits function moved out of cmxCavas object