refactorings in templates.html, showing table equal even if one contains
data