fixed TOC and added edge selection