add code in index.php