change Popup Dialog to Modal Dialog