fixed the preview button