refactor previews