Update history.php