added features to index.php