clicking toc almost working

numbers are off by one