Added datepiecker to add visit records.