update template using foundation