adding registration to the framework, modifying how templates are rendered