Tried to add saving functionality to editor in dialog.py