Added preview for templates