Implemented event handler for diagram type popup button.