updated this to parse Json and automatically update the dom