added code to clean up draggable views after node deletion