change shape of result data from table rows to divs