Added creation of links based on angular controller