Update view.detail.php