- hooked up advanced toggle to rename dialog,
- some small refactoring and error checking