fixed the visit edit form