before update events calendar 3.1