converting tables to divs