add Lifecycle demo