First view and logic of the app.