Changing dirty tables to divs