adding templates and working on views