adding check to make sure the visit has started