add preview of template