get the preview/enlarge working