show detail only if present, fix link_to