private boolean viewAccount(int accountID) {
        boolean contentPaneChanged = false;
        for (AccountRecord a : AccountRecord.accounts) {
            if (a.getID() == accountID) {
                switch (a.getType()) {
                    case AccountRecord.BANK:
                        activeAccount = a;
                        setContentPane(new BankTransactionPanel(a));
                        contentPaneChanged = true;
                        break;

                    case AccountRecord.CREDIT:
                        activeAccount = a;
                        setContentPane(new CreditTransactionPanel(a));
                        contentPaneChanged = true;
                        break;

                    case AccountRecord.INVESTMENT:
                        activeAccount = a;
                        setContentPane(new InvestmentTransactionPanel(a));
                        contentPaneChanged = true;
                        break;

                    case AccountRecord.ASSET:
                        activeAccount = a;
                        setContentPane(new AssetTransactionPanel(a));
                        contentPaneChanged = true;
                        break;

                    case AccountRecord.LOAN:
                        activeAccount = a;
                        setContentPane(new LoanTransactionPanel(a));
                        contentPaneChanged = true;
                        break;
                }

                break;
            }
        }

        return contentPaneChanged;
    }