edit templates with master contorl.