Proper handling of child view controllers lifecycle.