Implemented custom preview template