adds previewer method