remove view related functions in app.php