set up main template - table with divs