Added UI logic to prevent setting invalid parent.