upload new template
remove unneeded code