Move app-wide UI logic to an AppView class.
Move task initialization to the AppView.