Added preview template. fixes #377.