move views to templates, create base view class + test