added mako templates for tabular, pdf