prepare for editing and deleting model objects