private JPanel createRegisterPanel() {
        if (register != null) remove(register);
        
        if (DbConnector.isClosed()){
            register = new JPanel(new BorderLayout());
            register.add(new JLabel("Please select or create Database", JLabel.CENTER),
                           BorderLayout.CENTER);
            register.setMinimumSize(new Dimension(400, 400));
        } else {
            register = new RegisterTableGUI();
        }
        
        saveRegisterAction.setEnabled(!DbConnector.isClosed());
        locationAction.setEnabled(!DbConnector.isClosed());
        conditionAction.setEnabled(!DbConnector.isClosed());
        
        return register;
        
    }