select parent when deleting a node