modified the content type from text/html to text/json