added index.php with legend