MAG-03 Added json to ajax submission and message saving in db using observers