$("#close-button").click(function() {
  $(this).oneTime(1000, "hide", function() {
    $(this).parent(".main-window").hide();
  });
});
$("#cancel-button").click(function() {
  $("#close-button").stopTime("hide");
});
