linked edit and delete correctly