Edit and delete modal dialogs working