add index2.php and view.php to repository