disable preview window