Update template references