fix in adding new template (id in url is correct)