records when a user views a page