refactoring
rename/new dialogs now show tooltips when ok button is disabled
added some comments