modify attachment template