added style and templating