update templates for upgrading to the foundation 5