update index.php for directory list view