setup smarty templates
setup smarty templates