Updates to the application structure

Included an app view and used that model instead. Fixed some problems
with the application.