create a doc each time a page is viisted