newType dialog open/closes correctly