Created metaprogramming for link_to_global