A pop up to create Probem record on closing P1 incident

We have a requirement to pop up a message window asking whether to create a Probem record 'Yes' or 'No' on manually closing P1  incident. We are running on HPSM 9.40 with PD. Any ideas how to do this?