swapping from dock widget to dialog.