Replace tables with divs