Update pending.php