update templates in MATLAB interface