refactored templates to be JSON files than XML