creates the view
uses template for index.php