Incorporate the right extension for the templates

In this patch we call the template files form the plugin class
Rename the files of the templates