added link detection for pages