add view and template