add event in the background