added initial code to closed.php