Added render function for child