expectedDetails.email.name + '</span> and click the trash icon to delete it.');
  } else if (expectedDetails.action === 'important'){
    $('#query').html('Find the email by <span class="bold">' + expectedDetails.email.name + '</span> and click the star icon to mark it as important.');
  }
}

var bindClickEvents = function(expectedDetails, emails){
  $('#main .email-actions span.star').on('click', function(){
    var name = $(this).parents('.email-thread').find('.email-sender').text();
    if($(this).hasCla