save and reload templates