use relative path
update toc as soon as enabled