stop preview window popping up