pre app event