adds a badge when a user visited a page