framework for saving and deleting entries from dlg