private void updateClaim(boolean choice1) {
        switch (claim.getStatus()) {
            case UnRanked:
                claim.rank(choice1 ? Claim.Rank.Complex : Claim.Rank.Simple);
                JOptionPane.showMessageDialog(form, "The claim has been ranked " + (choice1 ? Claim.Rank.Complex : Claim.Rank.Simple));
                break;
            case Ranked:
                claim.setStatus(choice1 ? Claim.Status.Confirmed : Claim.Status.Declined);
                if(choice1) {
                    String billingInfo = AutomaticCustomerEmulator.sendForm();
                    storage.addPayment(claim.getCustomerId(), claim.getId(), claim.getDamageCost(), billingInfo);                    
                }
                else
                    AutomaticCustomerEmulator.sendMail("Your claim was denied");
                JOptionPane.showMessageDialog(form, "The claim has been " + (choice1 ? "confirmed" : "declined"));
                break;
            default:
                return;
        }

        storage.updateClaim(claim);
        if (listener != null) {
            listener.actionPerformed(new ActionEvent(this, 0, null));
        }
    }