Cleaned up show_linkXTPL function