added template and log View