add view with template