implement detail.php