change method name table_of_content =>  table_of_content_options and index => index_options