adding views and templates