add templates and change rest api for render templates