react calling child function from parent