add a function which record visited url