Reset select boxes pointing to a node when it is deleted