change table templates, for divs, refactor styles