modify the extra controlls to make templates work