tapped into 'onPostHandler' to redirect the json into a html reponse