Creating views and templates