handling template changes with a reload