Added dynamic template to view