More work on view class and templates.