fix id pattern, fixes #61

the tables now use _template to identify the templates from the divs