updated application lifecycle examples