update preview window
update preview window