create view class and template files for html