functioning edit dialog
working dialog box