add view files and sample codes in index.php