add visited and active state to individual article links