updated app.php for live