Refactored to support multiple links on a page