Add Method onVisit