update lifecycle callback example