Code changes for SP and Parent Lead