Add DCG Generation pane and update button instance replacement function to work for more than two buttons.