create templates and views