add template and view