refactor, rescan links when new content loads