rewrote the addVisit modal