fixed correct rendering of json/html