add the view and template to project