update visit history page