adding event to calendar working