macro for links for id