removed duplicate creation of dialogs in basetool