Tray Icon application with pops up alerts

I am coding a Tray Icon application in Java - it runs in the background & polls a server. On receiving a particular message from the server the application pops up an alert from the Tray Icon. The Alert contains a summary of the message. The user can click somewhere on the alert to get a dialog which gives more details & also allows the user to do some operations.

I have 2 questions. The answers to each question may influence the answer to the other.

1) What's the best way to go from the alert to the details dialog - should I have the summary in the alert along with a button on which the user clicks to go to the details dialog?

2) If there are multiple messages from the server (either multiple messages in the same dialog or single messages one after the other), what's the best way to display this? should I have multiple popups or one behind the other or what? I am currently thinking of going with stacked alerts enter image description here