Changed mapdisplay ui from widget to dialog.