Add manage app lifecycle from tutorial