Added new dialog and added functions to edit dialog
hotfix