Consolidate declarations in openSiteUrls
Consolidate declarations in siteEntry
Improve readability of instances loop in addClickHandlersToSiteLinks