added json output and topBar.php