refresh templates