add the smarty template
add the datalayer logic