Fixed model definitions, added app views.