implemented isCurrent for webpages