Changed to return JSON data and use JS to render.