moved view to app.view