basic templating working plus stylized tables