the Table of content is generated automatically - just put all the Chapter names with Heading 1 style for example and than be careful when creating the TOC to check the Heading 1
later when exporting the EPUB check the option of TOC - I think that it is disabled by default
good luck