Making table link to detail page