add event rules