public void commandAction(Command c, Displayable d) {
        // Help command displays Help Form
        if (c == CMD_HELP) {
            HelpForm h = new HelpForm(this.midlet, this, "update_or_new");
            this.midlet.display.setCurrent(h);
        }

        // exit command goes back to main menu.
        if (c == CMD_EXIT) {
            this.midlet.destroyApp(false);
            this.midlet.notifyDestroyed();
        }

        // save command stores choice in DB (if continue) or errors then
        // goes to main menu
        if (c == CMD_SAVE) {
            // continue existing does nothing.
            if (selection.getSelectedIndex() == 0) {
                Alert alert = new Alert("Poursuite de rapport", "Les dernières données ont été chargées.", null, AlertType.INFO);
                alert.setTimeout(3000);
                this.midlet.display.setCurrent(alert, this.midlet.mainMenu);
            } else {
                config.set("has_data", "false");
                // remove all report databases
                ProvidedServicesReport u5 = new ProvidedServicesReport();
                u5.delete();

                FinancialReport o5 = new FinancialReport();
                o5.delete();

                StocksReport pw = new StocksReport();
                pw.delete();

                this.midlet.refreshMenu();
                this.midlet.display.setCurrent (this.midlet.mainMenu);
            }
        }
    }