Added dynamic function for child remove