added totals next to display links. added json output so a cleaner presentation can be put together