rest code update on thank.php