move the preview jpa to resources