ue);
      } else {
        core.endEpisode(-1);
      }
    });
  });
}

var cancelReply = function(){
  $('#reply').remove();
  $('#email').removeClass('hide');
}

var cancelForward = function(){
  $('#forward').remove();
  $('#email').removeClass('hide');
}

var displayQuery = function(expectedDetails){
  if(expectedDetails.action === 'reply'){
    expectedDetails.reply = ui_utils.generateWords(1,5);
    $('#query').html('Find the email by <span class="bold">' + expectedDetails.email.name + '</span> and 