got the preview working