The application now transitions from a pane to the next when the OK button is clicked.