write alerts to calendar and erase previuos events.