refucktoring upload templates