modify theme to use topic directive
use topic directive for sample scripts
add TM Record Form