Moved view logic to routes/index.php