Stweaks. Now dialog is cancelled when paramters are visible.