Create view_gen.php