Changed popup to dialog.