fixes add dialogs

* bug fixes everywhere