Added title bar and close button to modal popup window.

Also added css transition for opacity changes in addition to color changes.