taking out orphaned elements warning from delete view