move templates to separate file so that browser can cache