populate the page using the JSON as well as clean up unneeded code