attaching the preview view.
making everything work.